package com.example.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.entity.UserchecksEntity;
import com.example.entity.UserchecksVoEntity;
import com.example.mapper.UserchecksMapper;
import com.example.service.UserchecksService;

@Service
public class UserchecksServiceImpl implements UserchecksService{
	
	@Autowired
	private UserchecksMapper userchecksMapper;

	/**
	 * 多条件查询
	 * @param userVO
	 * @return
	 */
	@Override
	public List<UserchecksEntity> GetUsersLayUI(UserchecksVoEntity userchecksVoEntity) {
		return userchecksMapper.GetUsersLayUI(userchecksVoEntity);
	}

	/**
	 * 分页查询
	 * @param userVO
	 * @return
	 */
	@Override
	public int getCount(UserchecksVoEntity userchecksVoEntity) {
		return userchecksMapper.getCount(userchecksVoEntity);
	}

	 /**
     * 查询全部
     * @return
     */
	@Override
	public List<UserchecksEntity> selectListAll() {
		return userchecksMapper.selectListAll();
	}
	 /**
	  * 签到
	  */
	@Override
	public int singIn(UserchecksEntity userchecksEntity) {
		
		return userchecksMapper.singIn(userchecksEntity);
	}
	/**
	 * 签退
	 */
	@Override
	public int singOut(UserchecksEntity userchecksEntity) {
		
		return userchecksMapper.singOut(userchecksEntity);
	}
	/**
	 * 查询当前用户是否签到
	 */
	@Override
	public UserchecksEntity selectisSignIn(int userId) {
		
		return userchecksMapper.selectisSingIn(userId);
	}
	/**
	 * 查询房钱时间发hi否子啊签到的10分钟内
	 */
	@Override
	public UserchecksEntity selectSigneInBefo10(String userId) {
		// TODO Auto-generated method stub
		return userchecksMapper.selectSigneInBefo10(userId);
	}

}
